package com.koudai.reader.vo;

import java.io.Serializable;
import java.util.List;

public class Book implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = -9087470187266475470L;
    
    private int bookid;
    private int cateid;
    private String title;
    private String author;
    private String summary;
    private String downloadPath;
    private String serverLastChapter;
    
    private List<String> chapterTitleList;
    private int chapterNumber;
    
    /**
     * 0 - 未读
     * 1 - 已读
     * 2 - 正在读
     */
    private int currentChapter;
    
    private int currentposition;
    
    public int getCurrentposition() {
        return currentposition;
    }
    public void setCurrentposition(int currentposition) {
        this.currentposition = currentposition;
    }
    public int getBookid() {
        return bookid;
    }
    public void setBookid(int bookid) {
        this.bookid = bookid;
    }
    public int getCateid() {
        return cateid;
    }
    public void setCateid(int cateid) {
        this.cateid = cateid;
    }

    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getDownloadPath() {
        return downloadPath;
    }
    public void setDownloadPath(String downloadPath) {
        this.downloadPath = downloadPath;
    }
    public String getServerLastChapter() {
        return serverLastChapter;
    }
    public void setServerLastChapter(String serverLastChapter) {
        this.serverLastChapter = serverLastChapter;
    }
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    public String getSummary() {
        return summary;
    }
    public void setSummary(String summary) {
        this.summary = summary;
    }
    public List<String> getChapterTitleList() {
        return chapterTitleList;
    }
    public void setChapterTitleList(List<String> chapterTitleList) {
        this.chapterTitleList = chapterTitleList;
    }
    public int getChapterNumber() {
        return chapterTitleList != null ? chapterTitleList.size() : 0;
    }
    public void setChapterNumber(int chapterNumber) {
        this.chapterNumber = chapterNumber;
    }
    public int getCurrentChapter() {
        return currentChapter;
    }
    public void setCurrentChapter(int currentChapter) {
        this.currentChapter = currentChapter;
    }
    
    
}
